package com.ruoyi.contest.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生管理对象 t_student
 *
 * @author ruoyi
 * @date 2024-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_student")
public class TStudent extends BaseEntity
{
    /** 序号 */
    private Long stuId;

    /** 学号 */
    @Excel(name = "学号")
    private String stuNum;

    /** 学生姓名 */
    @Excel(name = "学生姓名")
    private String stuName;

    /** 学院ID */
    @Excel(name = "学院ID")
    private Long deptId;

    /** 年级 */
    @Excel(name = "年级")
    private Long grade;

    /** 专业班级 */
    @Excel(name = "专业班级")
    private String stuClass;

    /** 性别 */
    @Excel(name = "性别")
    private Long gender;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phoneNum;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    @TableField(exist=false)
    @Excel(name = "部门名")
    private String deptName;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("stuId", getStuId())
                .append("stuNum", getStuNum())
                .append("stuName", getStuName())
                .append("deptId", getDeptId())
                .append("grade", getGrade())
                .append("stuClass", getStuClass())
                .append("gender", getGender())
                .append("phoneNum", getPhoneNum())
                .append("userId", getUserId())
                .append("deptName",getDeptName())
                .toString();
    }

}